package com.xlh.pojo.user;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 姓名
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 学号/工号
     *
     * @mbg.generated
     */
    private String userNumber;

    /**
     * 性别 1：男 2：女
     *
     * @mbg.generated
     */
    private Integer sex;

    /**
     * 电子邮箱
     *
     * @mbg.generated
     */
    private String email;

    /**
     * 邮箱是否能被学生查看到开关 0：关  1：开
     *
     * @mbg.generated
     */
    private Boolean showEmail;

    /**
     * 手机号
     *
     * @mbg.generated
     */
    private String telephoneNumber;

    /**
     * 密码
     *
     * @mbg.generated
     */
    private String password;

    /**
     * 角色（具体角色分配情况，看system_config表中key_word为role的key_value值）
     *
     * @mbg.generated
     */
    private Integer role;

    /**
     * 头像
     *
     * @mbg.generated
     */
    private String icon;

    /**
     * 状态： 1： 开通成功  2：销户（销户时，只是不能登录，其他数据都不进行删除）  3：删除
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 额外信息
     *
     * @mbg.generated
     */
    private Long userExtendId;

    /**
     * ip
     *
     * @mbg.generated
     */
    private String ip;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getShowEmail() {
        return showEmail;
    }

    public void setShowEmail(Boolean showEmail) {
        this.showEmail = showEmail;
    }

    public String getTelephoneNumber() {
        return telephoneNumber;
    }

    public void setTelephoneNumber(String telephoneNumber) {
        this.telephoneNumber = telephoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getUserExtendId() {
        return userExtendId;
    }

    public void setUserExtendId(Long userExtendId) {
        this.userExtendId = userExtendId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", userNumber=").append(userNumber);
        sb.append(", sex=").append(sex);
        sb.append(", email=").append(email);
        sb.append(", showEmail=").append(showEmail);
        sb.append(", telephoneNumber=").append(telephoneNumber);
        sb.append(", password=").append(password);
        sb.append(", role=").append(role);
        sb.append(", icon=").append(icon);
        sb.append(", status=").append(status);
        sb.append(", userExtendId=").append(userExtendId);
        sb.append(", ip=").append(ip);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}